/**
 * @filename:Proppbomlist Dec 14, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jnr.ffi.annotations.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.web3j.abi.datatypes.Int;

import java.io.Serializable;

/**   
 * @Description:TODO(生产用料清单详细实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_ppbom_l")
@ApiModel(value="t_prd_ppbom_l对象", description="生产用料清单详细表")
public class Proppbomlist extends Model<Proppbomlist> {

	private static final long serialVersionUID = 1702542382494429L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "主键")
    private Long id;
    
    @TableField(value = "entryId") 	
	@ApiModelProperty(name = "entryId" , value = "用料清单表头内码")
    private Long entryId;
    
    @TableField(value = "materialNo") 	
	@ApiModelProperty(name = "materialNo" , value = "物料编码")
    private String materialNo;
    
    @TableField(value = "materialName") 	
	@ApiModelProperty(name = "materialName" , value = "物料名称")
    private String materialName;
    
    @TableField(value = "specification") 	
	@ApiModelProperty(name = "specification" , value = "物料规格")
    private String specification;
    
    @TableField(value = "numerator") 	
	@ApiModelProperty(name = "numerator" , value = "分子")
    private Double numerator;
    
    @TableField(value = "denominator") 	
	@ApiModelProperty(name = "denominator" , value = "分母")
    private Double denominator;
    
    @TableField(value = "unit") 	
	@ApiModelProperty(name = "unit" , value = "单位")
    private String unit;
    
    @TableField(value = "fixscrapqty") 	
	@ApiModelProperty(name = "fixscrapqty" , value = "固定损耗率")
    private Double fixscrapqty;
    
    @TableField(value = "scraprate") 	
	@ApiModelProperty(name = "scraprate" , value = "变动损耗率")
    private Double scraprate;
    
    @TableField(value = "stdQty") 	
	@ApiModelProperty(name = "stdQty" , value = "标准用量")
    private Double stdQty;
    
    @TableField(value = "needQty") 	
	@ApiModelProperty(name = "needQty" , value = "需求用量")
    private Double needQty;
    
    @TableField(value = "mustQty") 	
	@ApiModelProperty(name = "mustQty" , value = "应发数量")
    private Double mustQty;
    
    @TableField(value = "batch") 	
	@ApiModelProperty(name = "batch" , value = "几锅完成")
    private Integer batch;
    
    @TableField(value = "batchQty") 	
	@ApiModelProperty(name = "batchQty" , value = "每锅数量")
    private Double batchQty;
    
    @TableField(value = "taskBillNo") 	
	@ApiModelProperty(name = "taskBillNo" , value = "生产订单单据编号")
    private String taskBillNo;
    
    @TableField(value = "bomEntryId") 	
	@ApiModelProperty(name = "bomEntryId" , value = "BOM分录内码")
    private Long bomEntryId;

    @TableField(value = "isFlot")
    @ApiModelProperty(name = "isFlot" , value = "是否启用批次")
    private Boolean isFlot;

    @TableField(value = "isProduce")
    @ApiModelProperty(name = "isProduce" , value = "是否启用保质期")
    private Boolean isProduce;

    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;


    @Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
